package main

import ("fmt"
	"sort"
)

func main()  {
	map1 := make(map[string]int,8)
	map1["zhangsna"]=1
	map1["fffg"]=2
	fmt.Println(map1)
	//声明方式2
	map2:=map[string]int{
		"hh":12,
		"ff":11,
	}
	i,ok := map2["hh"]
	fmt.Println(i,ok)
	//delete(map1,"fffg")
	for k,v:=range map2{
		fmt.Println(k,v)
	}
	a:=[]int{4,5,2}
	sort.Ints(a)
	fmt.Println(a)


}
